﻿using System.IO;

namespace chatGUI.DataBase.Helper;

public class SqlHelper{
    static readonly string ConnectionString = @"Data Source=" + Path.GetFullPath(@"..\..\..") + @"\DataBase\SQLFile\minichat.sqlite";
    public  static readonly IFreeSql FSql = new FreeSql.FreeSqlBuilder()
        .UseConnectionString(FreeSql.DataType.Sqlite, ConnectionString)
        .UseAutoSyncStructure(true)
        .Build();
    private SqlHelper(){
    }
    
}